package com.liu.mongodb.demo.service;

import com.liu.mongodb.demo.bean.PageVO;
import com.liu.mongodb.demo.entity.Student;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;


public interface StudentService {

    Student insertStudent(Student student);
    ArrayList<Student> insertStudents(ArrayList<Student> students);
    Student updataStudent(Student student);
    Student updataStudentByfield(Student student);
    Student removeStudent(long id);
    ArrayList<Student> removeAllStudent(Long... id);
    Student findOneStudent(long id);
    long countOfStudent();
    List<Student> findAllStudent();
    PageVO<Student> findSomeStudent(Integer pageIndex, Integer pageSize,String address);
}
